package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 当前评价的次数表
 * </p>
 *
 * @author Mr.We
 * @since 2024-06-25
 */
@Getter
@Setter
@TableName("afshop_coupon")
@ApiModel(value = "AfshopCoupon对象", description = "当前评价的次数表")
public class AfshopCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券名称")
    private String name;

    @ApiModelProperty("金额")
    private BigDecimal typeMoney;

    @ApiModelProperty("发放方式 0：按订单发放 1：按用户发放 2:商品转发送券 3：按商品发放 4:新用户注册 5：线下发放 6评价好评红包（固定或随机红包） 7包邮")
    private Byte sendType;

    @ApiModelProperty("最小金额")
    private BigDecimal minAmount;

    @ApiModelProperty("最大金额")
    private BigDecimal maxAmount;

    @ApiModelProperty("发放时间")
    private LocalDateTime sendStartDate;

    @ApiModelProperty("结束时间")
    private LocalDateTime sendEndDate;

    @ApiModelProperty("使用开始时间")
    private LocalDateTime useStartDate;

    @ApiModelProperty("使用结束时间")
    private LocalDateTime useEndDate;

    @ApiModelProperty("最小商品金额")
    private BigDecimal minGoodsAmount;

    @ApiModelProperty("转发次数")
    private Integer minTransmitNum;
}
